//
//  OCSSRetailOrderDetailCell.swift
//  OCSSStoreSwift
//
//  Created by MacMiniKangChe on 2018/11/1.
//  Copyright © 2018年 MacMiniKangChe. All rights reserved.
//

import UIKit

class OCSSRetailOrderDetailCell: UITableViewCell {

    
    @IBOutlet weak var titleLab: UILabel!
    @IBOutlet weak var productCodeLab: UILabel!
    @IBOutlet weak var priceLab: UILabel!
    @IBOutlet weak var numLab: UILabel!
    
    var model:OCSSRetailOrderDetailModel? {
        didSet{
            titleLab.text = model?.ProductName;
            productCodeLab.text = String(format: "商品码 %@", (model?.ProductCode)!);
            priceLab.text = String(format: "单价￥%.2f", (model?.SalesUnitPrice)!);
            numLab.text = String(format: "x%d", (model?.Quantity)!);
        }
    };
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
